#ifndef FEATURE_H
#define FEATURE_H

#include "../widgets/widget.h"
#include "../main_widget.h"
#include "../../controller_proxy.h"

class Feature: public Widget
{
public:
    Feature(int _id, Engine* _engine, MainWidget* _mw, ControllerProxy* _cProxy, int _x, int _y, int _w, int _h)
        :Widget(0, _engine, _x, _y, _w, _h)
    {
        id = _id;
        mw = _mw;
        cProxy = _cProxy;
        mw->AddGui(this);
        mouseTracking = true;
    }

    virtual ~Feature(){}
    virtual void Paint(QPainter &painter){ Widget::Paint(painter); }
    virtual int GetId() { return id; }

protected:
    MainWidget* mw;
    ControllerProxy* cProxy;
    int id;
};

#endif // FEATURE_H
